#include "Objects/Object.h"

CObject::CObject(ObjectType::Enum type)
{
}

CObject::~CObject()
{
}

void CObject::Render(sf::RenderWindow* win)
{
	DoRender(win);
}

ObjectLayer::Enum CObject::GetObjectLayer() const
{
	return m_eObjectLayer;
}

float CObject::GetAngle() const
{
	return m_fAngle;
}

bool CObject::CollidesWithCharacter(CCharacter* character) const
{
	return DoCollidesWithCharacter(character);
}

const v2f& CObject::GetPosition() const
{
	return m_vPosition;
}

ObjectType::Enum CObject::GetObjectType() const
{
	return m_eObjectType;
}

const sf::Sprite& CObject::GetSprite() const
{
	return m_tSprite;
}

const sf::FloatRect& CObject::GetCollisionRect(const sf::FloatRect& rect) const
{
	return m_tCollisionRect;
}

void CObject::SetObjectLayer(ObjectLayer::Enum layer)
{
	m_eObjectLayer = layer;
}

void CObject::SetAngle(float angle)
{
	m_fAngle = angle;
}

void CObject::SetPosition(const v2f& position)
{
	m_vPosition = position;
}

void CObject::SetCollisionRect(const sf::FloatRect& rect)
{
	m_tCollisionRect = rect;
}
